# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin
from appTest.models import *

# Register your models here.

@admin.register(Publisher)
class PublisherAdmin(admin.ModelAdmin):
	list_display = ('name','address','country','state_province','city','website',)
	search_fields = ('name','city',)
	list_filter = ('city','website',)
	ordering = ('-name',)
	fields = ('name','address')

@admin.register(Author)
class AuthorAamin(admin.ModelAdmin):
	list_display = ('name',)
	search_fields = ('name',)


# admin.site.register(Publisher,PublisherAdmin)
# admin.site.register(Author)
admin.site.register(AuthorDetail)
admin.site.register(Book)